package test.spring.ioc;

import my.spring.ioc.annotation.Bean;

/**
 * @author fengbo
 * @date 2018/6/21
 */
@Bean("newsBean")
public class NewsBean {

    private String name;
    private String birthday;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getBirthday() {
        return birthday;
    }

    public void setBirthday(String birthday) {
        this.birthday = birthday;
    }

    @Override
    public String toString() {
        return "NewsBean{" +
                "name='" + name + '\'' +
                ", birthday=" + birthday +
                '}';
    }
}
